<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="zs:explainResponse" xmlns:zs="http://www.loc.gov/zing/srw/">
        <xsl:apply-templates select="zs:record/zs:recordData"/>
    </xsl:template>
    <xsl:template match="zs:recordData" xmlns:zs="http://www.loc.gov/zing/srw/">
        <SRU-Service>
            <xsl:copy-of select="ns1:explain/ns1:serverInfo" xmlns:ns1="http://explain.z3950.org/dtd/2.0/"/>
            <xsl:copy-of select="ns1:explain/ns1:databaseInfo" xmlns:ns1="http://explain.z3950.org/dtd/2.0/"/>
            <indexInfo>
                <xsl:apply-templates select="ns1:explain/ns1:indexInfo/ns1:index" xmlns:ns1="http://explain.z3950.org/dtd/2.0/"/>
            </indexInfo>
        </SRU-Service>
    </xsl:template>
    <xsl:template match="ns1:index" xmlns:ns1="http://explain.z3950.org/dtd/2.0/">
        <index>
            <set>
                <xsl:value-of select="ns1:map/ns1:name/@set"/>
            </set>
            <name>
                <xsl:value-of select="ns1:map/ns1:name"/>
            </name>
            <description>
                <xsl:value-of select="ns1:title"/>
            </description>
        </index>
    </xsl:template>
  
</xsl:stylesheet>
